package com.hotel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hotel.entity.Carousel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.vo.CarouselVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 广告信息 服务类
 * </p>
 *
 * @author NieChangan
 * @since 2022-05-23
 */
public interface CarouselService extends IService<Carousel> {

    IPage<Carousel> getCarouselList(String carouselTitle,Integer statusId,Integer current,Integer size);

    int addCarousel(CarouselVO carouselVO);

    Carousel editCarousel(Integer id);

    int updateCarousel(CarouselVO carouselVO);

    int updateStatus(Integer id,Integer status);

    String upload(MultipartFile file, String pathName);
}
